package com.itheima.nio.tomcat.servlet;

import com.itheima.nio.tomcat.anno.WebServlet;
import com.itheima.nio.tomcat.domain.HttpRequest;
import com.itheima.nio.tomcat.domain.HttpResponse;
import com.itheima.nio.tomcat.inter.HttpServlet;

@WebServlet(urlPatterns = "/servlet/DServlet")
public class DServlet implements HttpServlet {

    @Override
    public void service(HttpRequest httpRequest, HttpResponse httpResponse) {
        System.out.println("DServlet的service方法执行了.....");
        httpResponse.setContentType("text/html;charset=UTF-8");
        httpResponse.write("DServlet....执行了.....");
    }
}
